﻿@using You.Models;
@{
    ViewBag.Title = "文章管理";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

@section styles{
    
<link href="~/Areas/Admin/css/bootstrap-dialog.min.css" rel="stylesheet" />
<link href="~/Areas/Admin/css/bootstrap-table.min.css" rel="stylesheet" />
<link href="~/Areas/Admin/css/select2.css" rel="stylesheet" />
}


<div id="content">
    <!--breadcrumbs-->
    <div id="content-header">
        <div id="breadcrumb"> <a href="index.html" title="回到首页" class="tip-bottom"><i class="icon-home"></i> 首页</a></div>
        <h1>文章管理</h1>
    </div>
    <!--End-breadcrumbs-->
    <!--Action boxes-->
    <div class="container-fluid">
        <!--End-Action boxes-->
        <hr>
        <!--Chart-box-->
        <div class="row-fluid">
            <div class="span12">
                <div class="widget-box">
                    
                    <div class="widget-title">
                        <span class="icon"> <i class="icon-th"></i> </span>
                        <h5>文章列表</h5>
                        @*<span class="label label-info">Featured</span>*@
                    </div>
                    <div class="widget-content">
                        <div id="toolbar">
                            <div class="columns columns-left btn-group pull-left" Tag="form">
                                <div class="btn-group" Tag="group" aria-label="">
                                    <a type="button" class="btn btn-sm btn-primary" id="AddArticle" href="@Url.Action("p","Article")">添加文章</a>
                                    <button type="button" class="btn btn-sm btn-danger" disabled="disabled" id="remove" data-method="delete">删除文章</button>
                                </div>
                                <div class="btn-group" id="State" data-state="@CommonModelState.Normal">
                                    <button data-toggle="dropdown" class="btn dropdown-toggle"><span class="text">正常</span> <span class="caret"></span></button>
                                    <ul class="dropdown-menu">
                                        <li><a data-state="@CommonModelState.Normal">正常</a></li>
                                        <li><a data-state="@CommonModelState.Deleted">已删除</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <table id="ArticleTable" class="table table-bordered table-striped with-check"
                               data-toolbar="#toolbar"
                               data-search="true"
                               data-show-refresh="true"
                               data-show-toggle="true"
                               data-show-columns="true"
                               data-show-export="true"
                               @*data-detail-view="true"*@
                               @*data-detail-formatter="detailFormatter"*@
                               data-minimum-count-columns="2"
                               data-show-pagination-switch="true"
                               data-pagination="true"
                               data-side-pagination="server"
                               data-page-list="[10, 25, 50, 100, ALL]"></table>
                    </div>
                </div>
                </div>
            </div>
    </div>
</div>



@section scripts{
<script src="~/Areas/Admin/js/bootstrap-dialog.min.js"></script>
<script src="~/Areas/Admin/js/bootstrap-table.min.js"></script>
<script src="~/Areas/Admin/js/select2.min.js"></script>
<script src="~/Areas/Admin/js/custom/article.js"></script>
}
